package com.yenlien.traceyun.business.service.rest.control;

import com.alibaba.fastjson.JSONObject;
import com.yenlien.traceyun.business.bean.RestURL;
import com.yenlien.traceyun.business.service.rest.RestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by LiuSha on 2020/9/17.
 */
@Service
public class ModelClassifyRestService {
    @Autowired
    private RestService restService;

    public Object findByOne(JSONObject jsonObject) {
        return restService.postJson(RestURL.CONTROL + "model/classify/findByOne", jsonObject);
    }

    public Object findById(String id) {
        return restService.getJson(RestURL.CONTROL + "model/classify/findById/" + id);
    }

    public Object findByParentId(String parentId) {
        return restService.getJson(RestURL.CONTROL + "model/classify/findByParentId/" + parentId);
    }


}
